<?php
//------------------------------------------------------------------------------------------------------------------------------
//	Nom : article.php
//	Auteurs: Defondemieres Fabrice - Delfour Kevin
//	Description :
//------------------------------------------------------------------------------------------------------------------------------
include ('php/Lib_Read.php');
include ('php/Lib_Write.php');
include ('php/Lib_Liste.php');
// ini_set("error_reporting", E_ALL);
// ini_set("display_errors","1"); 
// ini_set("ignore_repeated_errors","1");
// ini_set("log_errors", "1" ); 
// ini_set("error_log", "articles/errors_article.txt" ); 

if (isset($_GET['article'])) {
	$target = $_GET["article"];
		$Echo_left ="<a href='statistique.php?article=$target'>Statistic on \"$target\"</a>";
		if ($target != ""){
			$Echo = read_article ("$target");
			$Echo.= edit_article ("$target");
		}
		else $Echo = edit_article ("");
}

include ('template/top.tpl');
include ('template/main.tpl');
include ('template/back.tpl');
?>
